home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2009 February / PCWFEB09.iso / Software / Linux / Kubuntu 8.10 / kubuntu-8.10-desktop-i386.iso / casper / filesystem.squashfs / var / lib / dpkg / info / cups.postrm < prev    next >
Text File  |  2008-10-20  |  2KB  |  58 lines

  1. #! /bin/sh
  2. # postrm script for cups
  3. #
  4. # see: dh_installdeb(1)
  5.  
  6. set -e
  7.  
  8. # summary of how this script can be called:
  9. #        * <postrm> `remove'
  10. #        * <postrm> `purge'
  11. #        * <old-postrm> `upgrade' <new-version>
  12. #        * <new-postrm> `failed-upgrade' <old-version>
  13. #        * <new-postrm> `abort-install'
  14. #        * <new-postrm> `abort-install' <old-version>
  15. #        * <new-postrm> `abort-upgrade' <old-version>
  16. #        * <disappearer's-postrm> `disappear' <r>overwrit>r> <new-version>
  17. # for details, see /usr/doc/packaging-manual/
  18.  
  19. # dh_installdeb will replace this with shell code automatically
  20. # generated by other debhelper scripts.
  21.  
  22. # Automatically added by dh_installinit
  23. if [ "$1" = "purge" ] ; then
  24.     update-rc.d cups remove >/dev/null || exit $?
  25. fi
  26. # End automatically added section
  27. # Automatically added by dh_installdebconf
  28. if [ "$1" = purge ] && [ -e /usr/share/debconf/confmodule ]; then
  29.     . /usr/share/debconf/confmodule
  30.     db_purge
  31. fi
  32. # End automatically added section
  33.  
  34.  
  35. case "$1" in
  36.     purge)
  37.     rm -rf /var/lib/cups
  38.     rm -rf /var/log/cups
  39.     rm -rf /var/run/cups
  40.     rm -rf /var/cache/cups
  41.     rm -rf /var/spool/cups
  42.     rm -rf /etc/cups/interfaces
  43.     rm -rf /etc/cups/ppd
  44.     rm -rf /etc/cups/passwd.md5
  45.     rm -rf /etc/cups/cups.d
  46.     rm -f /etc/cups/printers.conf* /etc/cups/classes.conf.* \
  47.         /var/lib/cups/ppds.dat /etc/cups/raw.convs /etc/cups/raw.types
  48.     rmdir /etc/cups 2>/dev/null || true
  49.     ;;
  50.     remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
  51.         ;;
  52.  
  53.     *)
  54.         echo "postrm called with unknown argument \`$1'" >&2
  55.         exit 0
  56.  
  57. esac
  58.